package com.lovegu.object.down;

/**
 * @author 老顾
 * @title: Outer2
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/21 19:29
 */
public class Outer2 {
    private int s = 111;
    public class Inner {
        private int s = 222;
        public void mb(int s) {
            System.out.println(s); // 局部变量s
            System.out.println(this.s); // 内部类对象的属性s
            System.out.println(Outer2.this.s); // 外部类对象属性s
        }
    }
    public static void main(String args[]) {
        Outer2 a = new Outer2();
        Outer2.Inner b = a.new Inner();
        b.mb(333);
    }
}
